﻿namespace Grow.Domain.EventBus
{
    /// <summary>
    /// 领域事件处理器
    /// </summary>
    /// <typeparam name="TDomainEvent">领域事件类型</typeparam>
    public interface IDomainEventHandler<in TDomainEvent> where TDomainEvent : IDomainEvent
    {
        /// <summary>
        /// 处理
        /// </summary>
        /// <param name="TDomainEvent">领域事件</param>
        Task HandleAsync(TDomainEvent domainEvent);
    }
}
